﻿@model Enterprise.Management.ViewModels.CreateCategoryViewModel

@{
    ViewBag.Title = "CreateCatetory";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section header{
}

<h2>CreateCatetory</h2>

<p>
    @Html.ActionLink("Back", "Index")
</p>

@using (Html.BeginForm())
{
    <table>
        <tr>
            <td>
                @Html.LabelFor(m => m.Category_ID)
            </td>
            <td>
                @Html.DropDownListFor(m => m.Category_ID, Model.Categories, "--请选择所属分公司--")
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.Category_Name)
            </td>
            <td>
                @Html.TextBoxFor(m => m.Category_Name)
                @Html.ValidationMessageFor(m => m.Category_Name)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.User_Email)
            </td>
            <td>
                @Html.TextBoxFor(m => m.User_Email)
                @Html.ValidationMessageFor(m => m.User_Email)
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="提交" />
            </td>
        </tr>
    </table>
}

